package org.jeecg.modules.oss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.oss.entity.OSSFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author lixingxing
 */
public interface IOSSFileService extends IService<OSSFile> {

    /**
     * upload
     *
     * @param multipartFile
     * @throws IOException
     */
    void upload(MultipartFile multipartFile) throws IOException;

    /**
     * delete
     *
     * @param ossFile
     * @return
     */
    boolean delete(OSSFile ossFile);

}
